<?php
    echo validation_errors("<li>", "</li>");
?>
<!-- Edit Form -->
<div id="formaction_cate_edit">
    <div class="formPanel02">
        <fieldset>
            <legend>Thêm thể loại</legend>
            <form id="input_form_cate_edit" method="post" 
                  action="<?php echo base_url(); ?>admin_combo/category/edit/<?php if(isset($info_edit)) echo $info_edit["cate_id"]; ?>">
                <table id="tbfrmaction">
                    <tr>
                        <td>Tiêu Đề</td>
                        <td><input type="text" id="txtTitle" name="txtTitle" size="30" class="required" 
                                   value="<?php if(isset($info_edit)) echo $info_edit["cate_title"]; ?>" /></td>
                        <td>Parent</td>
                        <td>
                            <select id="slParent" name="slParent">
                                <option value="0">root</option>
                                <?php
                                    callMenuCate($menu, 0, "**", $info_edit["cate_parent"]);
                                ?>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td>Vị Trí</td>
                        <td><input type="text" id="txtOrder" name="txtOrder" size="30" class="required digits" 
                                   value="<?php if(isset($info_edit)) echo $info_edit["cate_order"]; ?>" /></td>
                        <td>Ghi Chú</td>
                        <td>
                            <textarea id="txtNote" name="txtNote" cols="30" rows="4"><?php if(isset($info_edit)) echo $info_edit["cate_note"]; ?></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td>Module</td>
                        <td>
                            <?php
                                echo "<select id='slModule' name='slModule'>";
                                    callModule($info_module, 0, "**",$info_edit["module_id"]);
                                echo "</select>";
                            ?>
                        </td>
                        <td>&nbsp;</td>
                        <td><input type="submit" id="btnSubmit_cate" class="button" name="ok" value="Cập nhật" /></td>
                    </tr>
                </table>
            </form>
        </fieldset>
    </div>
</div>